<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class NoticeController extends Controller
{
    public function index(){
        //获取当前用户
        $user = \Auth::user();
        //当前用户收到的通知
        $notices = $user->notices;
        return view('notice.index',compact('notices'));
    }
}
